import React, { Component } from 'react'
import {Switch,Route,Redirect} from "react-router-dom"
import "./index.scss"
import lazyload from '../../utils/lazyload';

export default class AnnoIndex extends Component {
    render() {
        return (
            <Switch>
                <Route path='/main/anno' exact  component={()=>(<Redirect to="/main/anno/list" /> )}/>
                <Route path='/main/anno/list' component={lazyload(()=>import("./list"))  } />
                <Route path='/main/anno/add' component={lazyload(()=>import("./add"))  } />
                {/* <Route path='/main/anno/update/:aid' component={lazyload(()=>import("./update"))  } /> */}
            </Switch>
        )
    }
}